using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
    public partial class BilTransferBill : BusinessBase<string>
    {
        #region Declarations

        private string _warehouseCode = String.Empty;
        private string _warehouseName = String.Empty;
        private string _tsfType = String.Empty;
        private string _tsfManCode = String.Empty;
        private string _tsfManName = String.Empty;
        private string _planTsfDate = String.Empty;
        private string _tsfDate = String.Empty;
        private string _auditorCode = String.Empty;
        private string _auditorName = String.Empty;
        private string _auditDate = String.Empty;
        private string _auditTime = String.Empty;
        private string _auditNote = String.Empty;
        private string _billStatus = String.Empty;
        private string _isDeactived = String.Empty;
        private string _createUserCode = String.Empty;
        private string _createUserName = String.Empty;
        private string _createDate = String.Empty;
        private string _createTime = String.Empty;
        private string _editUserCode = String.Empty;
        private string _editUserName = String.Empty;
        private string _editDate = String.Empty;
        private string _editTime = String.Empty;
        private string _remark = String.Empty;



        #endregion

        #region Constructors

        public BilTransferBill() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_warehouseCode);
            sb.Append(_warehouseName);
            sb.Append(_tsfType);
            sb.Append(_tsfManCode);
            sb.Append(_tsfManName);
            sb.Append(_planTsfDate);
            sb.Append(_tsfDate);
            sb.Append(_auditorCode);
            sb.Append(_auditorName);
            sb.Append(_auditDate);
            sb.Append(_auditTime);
            sb.Append(_auditNote);
            sb.Append(_billStatus);
            sb.Append(_createUserCode);
            sb.Append(_createUserName);
            sb.Append(_createDate);
            sb.Append(_createTime);
            sb.Append(_editUserCode);
            sb.Append(_editUserName);
            sb.Append(_editDate);
            sb.Append(_editTime);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

        [DataMember]
        public virtual string WarehouseCode
        {
            get { return _warehouseCode.TrimEnd(); }
            set
            {
                OnWarehouseCodeChanging();
                _warehouseCode = value;
                OnWarehouseCodeChanged();
            }
        }
        partial void OnWarehouseCodeChanging();
        partial void OnWarehouseCodeChanged();

        [DataMember]
        public virtual string WarehouseName
        {
            get { return _warehouseName.TrimEnd(); }
            set
            {
                OnWarehouseNameChanging();
                _warehouseName = value;
                OnWarehouseNameChanged();
            }
        }
        partial void OnWarehouseNameChanging();
        partial void OnWarehouseNameChanged();

        [DataMember]
        public virtual string TsfType
        {
            get { return _tsfType.TrimEnd(); }
            set
            {
                OnTsfTypeChanging();
                _tsfType = value;
                OnTsfTypeChanged();
            }
        }
        partial void OnTsfTypeChanging();
        partial void OnTsfTypeChanged();

        [DataMember]
        public virtual string TsfManCode
        {
            get { return _tsfManCode.TrimEnd(); }
            set
            {
                OnTsfManCodeChanging();
                _tsfManCode = value;
                OnTsfManCodeChanged();
            }
        }
        partial void OnTsfManCodeChanging();
        partial void OnTsfManCodeChanged();

        [DataMember]
        public virtual string TsfManName
        {
            get { return _tsfManName.TrimEnd(); }
            set
            {
                OnTsfManNameChanging();
                _tsfManName = value;
                OnTsfManNameChanged();
            }
        }
        partial void OnTsfManNameChanging();
        partial void OnTsfManNameChanged();

        [DataMember]
        public virtual string PlanTsfDate
        {
            get { return _planTsfDate.TrimEnd(); }
            set
            {
                OnPlanTsfDateChanging();
                _planTsfDate = value;
                OnPlanTsfDateChanged();
            }
        }
        partial void OnPlanTsfDateChanging();
        partial void OnPlanTsfDateChanged();

        [DataMember]
        public virtual string TsfDate
        {
            get { return _tsfDate.TrimEnd(); }
            set
            {
                OnTsfDateChanging();
                _tsfDate = value;
                OnTsfDateChanged();
            }
        }
        partial void OnTsfDateChanging();
        partial void OnTsfDateChanged();

        [DataMember]
        public virtual string AuditorCode
        {
            get { return _auditorCode.TrimEnd(); }
            set
            {
                OnAuditorCodeChanging();
                _auditorCode = value;
                OnAuditorCodeChanged();
            }
        }
        partial void OnAuditorCodeChanging();
        partial void OnAuditorCodeChanged();

        [DataMember]
        public virtual string AuditorName
        {
            get { return _auditorName.TrimEnd(); }
            set
            {
                OnAuditorNameChanging();
                _auditorName = value;
                OnAuditorNameChanged();
            }
        }
        partial void OnAuditorNameChanging();
        partial void OnAuditorNameChanged();

        [DataMember]
        public virtual string AuditDate
        {
            get { return _auditDate.TrimEnd(); }
            set
            {
                OnAuditDateChanging();
                _auditDate = value;
                OnAuditDateChanged();
            }
        }
        partial void OnAuditDateChanging();
        partial void OnAuditDateChanged();

        [DataMember]
        public virtual string AuditTime
        {
            get { return _auditTime.TrimEnd(); }
            set
            {
                OnAuditTimeChanging();
                _auditTime = value;
                OnAuditTimeChanged();
            }
        }
        partial void OnAuditTimeChanging();
        partial void OnAuditTimeChanged();

        [DataMember]
        public virtual string AuditNote
        {
            get { return _auditNote.TrimEnd(); }
            set
            {
                OnAuditNoteChanging();
                _auditNote = value;
                OnAuditNoteChanged();
            }
        }
        partial void OnAuditNoteChanging();
        partial void OnAuditNoteChanged();

        [DataMember]
        public virtual string BillStatus
        {
            get { return _billStatus.TrimEnd(); }
            set
            {
                OnBillStatusChanging();
                _billStatus = value;
                OnBillStatusChanged();
            }
        }
        partial void OnBillStatusChanging();
        partial void OnBillStatusChanged();

        [DataMember]
        public virtual string IsDeactived
        {
            get { return _isDeactived; }
            set
            {
                _isDeactived = value;
            }
        }

        [DataMember]
        public virtual string CreateUserCode
        {
            get { return _createUserCode.TrimEnd(); }
            set
            {
                OnCreateUserCodeChanging();
                _createUserCode = value;
                OnCreateUserCodeChanged();
            }
        }
        partial void OnCreateUserCodeChanging();
        partial void OnCreateUserCodeChanged();

        [DataMember]
        public virtual string CreateUserName
        {
            get { return _createUserName.TrimEnd(); }
            set
            {
                OnCreateUserNameChanging();
                _createUserName = value;
                OnCreateUserNameChanged();
            }
        }
        partial void OnCreateUserNameChanging();
        partial void OnCreateUserNameChanged();

        [DataMember]
        public virtual string CreateDate
        {
            get { return _createDate.TrimEnd(); }
            set
            {
                OnCreateDateChanging();
                _createDate = value;
                OnCreateDateChanged();
            }
        }
        partial void OnCreateDateChanging();
        partial void OnCreateDateChanged();

        [DataMember]
        public virtual string CreateTime
        {
            get { return _createTime.TrimEnd(); }
            set
            {
                OnCreateTimeChanging();
                _createTime = value;
                OnCreateTimeChanged();
            }
        }
        partial void OnCreateTimeChanging();
        partial void OnCreateTimeChanged();

        [DataMember]
        public virtual string EditUserCode
        {
            get { return _editUserCode.TrimEnd(); }
            set
            {
                OnEditUserCodeChanging();
                _editUserCode = value;
                OnEditUserCodeChanged();
            }
        }
        partial void OnEditUserCodeChanging();
        partial void OnEditUserCodeChanged();

        [DataMember]
        public virtual string EditUserName
        {
            get { return _editUserName.TrimEnd(); }
            set
            {
                OnEditUserNameChanging();
                _editUserName = value;
                OnEditUserNameChanged();
            }
        }
        partial void OnEditUserNameChanging();
        partial void OnEditUserNameChanged();

        [DataMember]
        public virtual string EditDate
        {
            get { return _editDate.TrimEnd(); }
            set
            {
                OnEditDateChanging();
                _editDate = value;
                OnEditDateChanged();
            }
        }
        partial void OnEditDateChanging();
        partial void OnEditDateChanged();

        [DataMember]
        public virtual string EditTime
        {
            get { return _editTime.TrimEnd(); }
            set
            {
                OnEditTimeChanging();
                _editTime = value;
                OnEditTimeChanged();
            }
        }
        partial void OnEditTimeChanging();
        partial void OnEditTimeChanged();

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                OnRemarkChanging();
                _remark = value;
                OnRemarkChanged();
            }
        }
        partial void OnRemarkChanging();
        partial void OnRemarkChanged();

        #endregion
    }
}